package com.weizhu.swufer.constant;

public class SwuferConstant {

    public static final  String ZK_DEFAULT_ROOT = "swufer-zk";

    public static final String PROPERTIES_PORT = "port";

    public static final String PROPERTIES_REGISTRY_TYPE = "registry-type";

    public static final String PROPERTIES_REGISTRY_ADDRESS = "registry-address";

    public static final String PROPERTIES_WEIGHT = "weight";

    public static final String PROPERTIES_CLUSTER = "cluster";

    public static final String PROPERTIES_LOADBALANCER = "load-balancer";

    public static final String PROPERTIES_RETRY_TIMES = "retry-times";


    public static final String PROPERTIES_MAX_WAIT_TIME = "max_weight_time";

    public static final String PROPERTIES_LAZY_START = "lazy-start";

    public static final String IP_ADDRESS_DELIMITER = ":";

    public static final String COMMON_DELIMITER = "-";

    public static final Integer RESPONSE_SUCCESS_CODE = 0;

    public static final Integer RESPONSE_ERROR_CODE = -1;

    public static final Integer RESPONSE_BIZ_ERROR_CODE = -99;

    public static final String RESPONSE_SUCCESS_MSG= "success";

    public static final String FILTER_TYPE_PROVIDER = "provider";

    public static final String FILTER_TYPE_CLIENT = "client";


    public static final int DEFAULT_WEIGHT = 100;

    public static final int DEFAULT_PORT = 1025;

    public static final int DEFAULT_TRY_TIMES = 2;

    public static final int DEFAULT_QPS = -1;

    public static final long DEFAULT_MAX_WAIT_TIME = 10 * 1000L;

    public static final String TOKEN = "Swufer_token";

    public static final String TRACE_ID = "Trace_id";
}
